package com.ytrsoft.enums;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "性别")
public enum Gender {
    @Schema(description = "男")
    MALE,
    @Schema(description = "女")
    FEMALE;

    @JsonCreator
    public static Gender enumCreator(String name) {
        return Gender.valueOf(name);
    }
}